package com.fancy.mobileschool.util;

import com.google.gson.Gson;

/**
 * Created by Jackie on 2017/10/22.
 */

public class GsonUtil {

    private static Gson gson;

    public static Gson getGson() {
        if (gson==null) {
            synchronized (GsonUtil.class){
                if (gson == null) {
                    gson = new Gson();
                }
            }
        }

        return gson;
    }
}
